package shopping;

/**
 *
 *@author 17399
 *@SINCE 2024/11/30 21:17
 *//**
 *
 * @author 17399
 * @since 2024/11/30 21:17
 */
class goods {
    String name;
    String type;
    double price;
    int count;

    public goods(String name, String type, double price, int count) {
        this.name = name;
        this.type = type;
        this.price = price;
        this.count = count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "商品名称：" + name + "， 商品类型：" + type + "， 商品价格：" + price + "， 商品数量：" + count;
    }
}